/**
 * 
 */
package com.xjoyt.pay.util;

import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * 证书信任管理器（用于https请求）
 * @author fuyj
 *
 */
public class MyX509TrustManager implements X509TrustManager {

	/* （非 Javadoc）
	 * @see javax.net.ssl.X509TrustManager#checkClientTrusted(java.security.cert.X509Certificate[], java.lang.String)
	 */

	public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
		// TODO 自动生成的方法存根

	}

	/* （非 Javadoc）
	 * @see javax.net.ssl.X509TrustManager#checkServerTrusted(java.security.cert.X509Certificate[], java.lang.String)
	 */
 
	public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
		// TODO 自动生成的方法存根

	}

	/* （非 Javadoc）
	 * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers()
	 */
 
	public X509Certificate[] getAcceptedIssuers() {
		// TODO 自动生成的方法存根
		return null;
	}

}
